import 'package:get/get.dart';

class CountController extends GetxController {
  RxInt count = 0.obs;

  inc() {
    count++;
    update(); // 更新数据
  }

  dec() {
    count--;
    update();
  }
}
